package com.lx.service;

import com.lx.entity.Product;
import com.lx.util.PageInfo;

import java.util.List;
import java.util.Map;

public interface ProductService {

    List<Product> getAllProduct();
    PageInfo<Product> getPageInfo(Map<String, Object> params);
    PageInfo<Product> getPageInfoByCategory(Map<String, Object> params);
    Product getProductById(Integer id);
    boolean addProduct(Product product);
    boolean updateProduct(Product product);
    boolean updateProductNumber(Integer id, Integer number);
    boolean deleteProduct(Integer id);

}
